//#include<stdio.h>
//#include<string.h>
//
//int main()
//{
//      FILE*fp=fopen("myfile","r");//C语言接口，里面封装了open// 
//      if(!fp){
//        printf("fopen error\n");
//      }
//      char ch;
////    char buf[1024];
////    const char*msg="hello  world\n";
////    while(1)
////    {
////    size_t s=fread(buf,1,5,fp);
////    if(s>0) {
////        buf[s]='\0';
////        printf("%s\n",buf);
////    }
////   if(feof(fp))//检测文件到没到最后
////               break;
////    }
////    //int a[15]={1,2,3,4,5,6,7,8};
////    const char*msg="hello world!\n";
////    int count=1;
////    while(count--){
////        fwrite(msg,strlen(msg),1,fp);//C接口，1指的是要读入几个前面的长数据进去
////      //  fwrite(a,sizeof(int),4,fp);//C接口，1指的是要读入几个前面的长数据进去
////    }
////    fclose(fp);
////    const char*hello="hello world\n";
////    printf("hello world\n");
////    fwrite(hello, strlen(hello),1,stdout);
////    fprintf(stdout,"hello world\n");
////// fread(stdout,1,strlen(hello),fp);
////   fseek复习
////    fseek(fp,1,SEEK_CUR);//获取偏移量为1的字符
////    ch =fgetc(fp);
////    printf("%c\n",ch);
////    ftell()复习获取当前读取到哪里
//
////     fseek(fp,1,SEEK_CUR);//获取偏移量为1的字符
////     ch =fgetc(fp);
////     int a=ftell(fp);
////     printf("%c\n",ch);
////     printf("%d\n",a);
////     rewind()函数//让文件指针回到起始位置
//     fseek(fp,1,SEEK_CUR);//获取偏移量为1的字符
//     ch =fgetc(fp);
//     int a=ftell(fp);
//     printf("%c\n",ch);
//     printf("%d\n",a);
//     rewind(fp);
//     a=ftell(fp);
//     printf("%d\n",a);
//
//      return 0;
//}
#include<stdio.h>
#include <unistd.h>
int main()
{

}
